package com.zzl.finance.data.dto;

import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.finance.data.constant.StringConstant;
import lombok.Data;

import java.io.Serializable;

/**
 * 金融产品
 *
 * @author wztsl
 * @date 2021-12-22 19:40:27
 */
@Data
@ApidocModel
public class EnterpriseFinancialProductDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "企业id")
    private String enterpriseId;
    @ApidocModelProperty(description = "企业名称")
    private String enterpriseName;
    @ApidocModelProperty(description = "金融产品id")
    private String financialProductId;
    @ApidocModelProperty(description = "服务费")
    private Double platServiceRate;

    /**
     * 默认服务费率是千分之二
     * @return
     */
    public Double getPlatServiceRate() {
        if (null == platServiceRate) {
            platServiceRate = StringConstant.PLAT_SERVICE_RATE;
        }
        return platServiceRate;
    }
}
